import request from "@/utils/request";



//登录
// export const reqLogin = (username,password) => ajax('/authorizations',{ username,password },'post');
export const login = data =>{
    return request({
        method: 'POST',
        url:'v1_0/authorizations',
        data
    })
}

//发送验证码
export const sendSms = mobile =>{
    return request({
        method: 'GET',
        url:`v1_0/sms/codes/${mobile}`
    })
}

//获取当前用户的信息
export const getCurrentUser = () =>{
    return request({
        method: 'GET',
        url:'v1_0/user/profile'
    })
}

